import request from "@/utils/request";

const api_name = "/admin/hosp/schedule";

export const getScheduleRule = (
	page: number,
	limit: number,
	hoscode: string,
	depcode: string
): any => {
	return request({
		url: `${api_name}/getScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
		method: "get",
	});
};

export const findScheduleList = (
	hoscode: string,
	depcode: string,
	workDate: string
) => {
	return request({
		url: `${api_name}/findScheduleList/${hoscode}/${depcode}/${workDate}`,
		method: "get",
	});
};
